<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../print.css" type="text/css" media="print">
<meta content="StyleManager,mx.styles.StyleManager,NOT_A_COLOR,selectors,clearStyleDeclaration,getColorName,getColorNames,getStyleDeclaration,isColorName,isInheritingStyle,isInheritingTextFormatStyle,isParentDisplayListInvalidatingStyle,isParentSizeInvalidatingStyle,isSizeInvalidatingStyle,isValidStyleValue,loadStyleDeclarations,registerColorName,registerInheritingStyle,registerParentDisplayListInvalidatingStyle,registerParentSizeInvalidatingStyle,registerSizeInvalidatingStyle,setStyleDeclaration,unloadStyleDeclarations" name="keywords">
<title>mx.styles.StyleManager</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'StyleManager - Zentrum virtUOS: virtPresenter';
				var baseRef = '../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">virtPresenter AsDoc</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../all-classes.html')" href="../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../all-classes.html')" href="../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../index-list.html')" href="../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../index.html?mx/styles/StyleManager.html&amp;mx/styles/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;StyleManager</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a>&nbsp;| <a href="#constantSummary">Constants</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class StyleManager"); titleBar_setSubNav(true,true,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">mx.styles</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class StyleManager</td>
</tr>
</table>
<p></p>
  The StyleManager class manages the following:
  <ul>
    <li>Which CSS style properties the class inherits</li>
    <li>Which style properties are colors, and therefore get special handling</li>
    <li>A list of strings that are aliases for color values</li>
  </ul>
   <p></p>
<p>
<span class="classHeaderTableLabel">See also</span>
</p>
<div class="seeAlso">
<a href="../styles/CSSStyleDeclaration.html" target="">mx.styles.CSSStyleDeclaration</a>
</div>
<br>
<hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Properties</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#selectors">selectors</a> : Array<div class="summaryTableDescription">[static][read-only]
      Returns an Array of all the CSS selectors that are registered with the StyleManager.</div>
</td><td class="summaryTableOwnerCol">StyleManager</td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#clearStyleDeclaration()">clearStyleDeclaration</a>(selector:String, update:Boolean):void</div>
<div class="summaryTableDescription">[static]
      Clears the CSSStyleDeclaration object that stores the rules
      for the specified CSS selector.</div>
</td><td class="summaryTableOwnerCol">StyleManager</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getColorName()">getColorName</a>(colorName:Object):uint</div>
<div class="summaryTableDescription">[static]
      Returns the numeric RGB color value that corresponds to the
      specified color string.</div>
</td><td class="summaryTableOwnerCol">StyleManager</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getColorNames()">getColorNames</a>(colors:Array):void</div>
<div class="summaryTableDescription">[static]
      Converts each element of the colors Array from a color name
      to a numeric RGB color value.</div>
</td><td class="summaryTableOwnerCol">StyleManager</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getStyleDeclaration()">getStyleDeclaration</a>(selector:String):<a href="../styles/CSSStyleDeclaration.html">CSSStyleDeclaration</a>
</div>
<div class="summaryTableDescription">[static]
      Gets the CSSStyleDeclaration object that stores the rules
      for the specified CSS selector.</div>
</td><td class="summaryTableOwnerCol">StyleManager</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#isColorName()">isColorName</a>(colorName:String):Boolean</div>
<div class="summaryTableDescription">[static]
      Tests to see if the given String is an alias for a color value.</div>
</td><td class="summaryTableOwnerCol">StyleManager</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#isInheritingStyle()">isInheritingStyle</a>(styleName:String):Boolean</div>
<div class="summaryTableDescription">[static]
      Tests to see if a style is inheriting.</div>
</td><td class="summaryTableOwnerCol">StyleManager</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#isInheritingTextFormatStyle()">isInheritingTextFormatStyle</a>(styleName:String):Boolean</div>
<div class="summaryTableDescription">[static]
      Test to see if a TextFormat style is inheriting.</div>
</td><td class="summaryTableOwnerCol">StyleManager</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#isParentDisplayListInvalidatingStyle()">isParentDisplayListInvalidatingStyle</a>(styleName:String):Boolean</div>
<div class="summaryTableDescription">[static]
      Tests to see if this style affects the component's parent container in
      such a way as to require that the parent container redraws itself when this style changes.</div>
</td><td class="summaryTableOwnerCol">StyleManager</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#isParentSizeInvalidatingStyle()">isParentSizeInvalidatingStyle</a>(styleName:String):Boolean</div>
<div class="summaryTableDescription">[static]
      Tests to see if the style changes the size of the component's parent container.</div>
</td><td class="summaryTableOwnerCol">StyleManager</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#isSizeInvalidatingStyle()">isSizeInvalidatingStyle</a>(styleName:String):Boolean</div>
<div class="summaryTableDescription">[static]
      Tests to see if a style changes the size of a component.</div>
</td><td class="summaryTableOwnerCol">StyleManager</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#isValidStyleValue()">isValidStyleValue</a>(value:*):Boolean</div>
<div class="summaryTableDescription">[static]
      Determines if a specified parameter is a valid style property.</div>
</td><td class="summaryTableOwnerCol">StyleManager</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#loadStyleDeclarations()">loadStyleDeclarations</a>(url:String, update:Boolean = true, trustContent:Boolean = false, applicationDomain:ApplicationDomain = null, securityDomain:SecurityDomain = null):IEventDispatcher</div>
<div class="summaryTableDescription">[static]
      Loads a style SWF.</div>
</td><td class="summaryTableOwnerCol">StyleManager</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#registerColorName()">registerColorName</a>(colorName:String, colorValue:uint):void</div>
<div class="summaryTableDescription">[static]
      Adds a color name to the list of aliases for colors.</div>
</td><td class="summaryTableOwnerCol">StyleManager</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#registerInheritingStyle()">registerInheritingStyle</a>(styleName:String):void</div>
<div class="summaryTableDescription">[static]
      Adds to the list of styles that can inherit values
      from their parents.</div>
</td><td class="summaryTableOwnerCol">StyleManager</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#registerParentDisplayListInvalidatingStyle()">registerParentDisplayListInvalidatingStyle</a>(styleName:String):void</div>
<div class="summaryTableDescription">[static]
      Adds to the list of styles which may affect the appearance
      or layout of the component's parent container.</div>
</td><td class="summaryTableOwnerCol">StyleManager</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#registerParentSizeInvalidatingStyle()">registerParentSizeInvalidatingStyle</a>(styleName:String):void</div>
<div class="summaryTableDescription">[static]
      Adds to the list of styles which may affect the measured size
      of the component's parent container.</div>
</td><td class="summaryTableOwnerCol">StyleManager</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#registerSizeInvalidatingStyle()">registerSizeInvalidatingStyle</a>(styleName:String):void</div>
<div class="summaryTableDescription">[static]
      Adds to the list of styles which may affect the measured size
      of the component.</div>
</td><td class="summaryTableOwnerCol">StyleManager</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#setStyleDeclaration()">setStyleDeclaration</a>(selector:String, styleDeclaration:<a href="CSSStyleDeclaration.html">CSSStyleDeclaration</a>, update:Boolean):void</div>
<div class="summaryTableDescription">[static]
      Sets the CSSStyleDeclaration object that stores the rules
      for the specified CSS selector.</div>
</td><td class="summaryTableOwnerCol">StyleManager</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#unloadStyleDeclarations()">unloadStyleDeclarations</a>(url:String, update:Boolean = true):void</div>
<div class="summaryTableDescription">[static]
      Unloads a style SWF.</div>
</td><td class="summaryTableOwnerCol">StyleManager</td>
</tr>
</table>
</div>
<a name="constantSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Constants</div>
<table id="summaryTableConstant" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Constant</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#NOT_A_COLOR">NOT_A_COLOR</a> : uint = 0xFFFFFFFF<div class="summaryTableDescription">[static]
      The <code>getColorName()</code> method returns this value if the passed-in
      String is not a legitimate color name.</div>
</td><td class="summaryTableOwnerCol">StyleManager</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="selectors"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">selectors</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>selectors:Array</code>&nbsp;&nbsp;[read-only]<p>
      Returns an Array of all the CSS selectors that are registered with the StyleManager.
      You can pass items in this Array to the <code>getStyleDeclaration()</code> method to get the corresponding CSSStyleDeclaration object.
      Class selectors are prepended with a period.
      
      </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public static function get selectors():Array</code>
<br>
</div>
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="clearStyleDeclaration()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">clearStyleDeclaration</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>public static function clearStyleDeclaration(selector:String, update:Boolean):void</code><p>
      Clears the CSSStyleDeclaration object that stores the rules
      for the specified CSS selector.
           </p><p>If the specified selector is a class selector (for example, ".bigMargins" or ".myStyle"),
      you must be sure to start the
      <code>selector</code> property with a period (.).</p>
           <p>If the specified selector is a type selector (for example, "Button"), do not start the
      <code>selector</code> property with a period.</p>
           <p>The <code>global</code> selector is similar to a type selector
      and does not start with a period.</p>
           <span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">selector</span>:String</code> &mdash; The name of the CSS selector to clear.
      </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">update</span>:Boolean</code> &mdash; Set to <code>true</code> to force an immediate update of the styles.
      Set to <code>false</code> to avoid an immediate update of the styles in the application.
      For more information about this method, see the description in the <code>setStyleDeclaration()</code>
      method.
      
      </td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../styles/StyleManager.html#setStyleDeclaration()" target="">setStyleDeclaration()</a>
</div>
</div>
<a name="getColorName()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getColorName</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function getColorName(colorName:Object):uint</code><p>
      Returns the numeric RGB color value that corresponds to the
      specified color string.
      The color string can be either a case-insensitive color name
      such as <code>"red"</code>, <code>"Blue"</code>, or
      <code>"haloGreen"</code>, a hexadecimal value such as 0xFF0000, or a #-hexadecimal String
      such as <code>"#FF0000"</code>.
           </p><p>This method returns a uint, such as 4521830, that represents a color. You can convert
      this uint to a hexadecimal value by passing the numeric base (in this case, 16), to
      the uint class's <code>toString()</code> method, as the following example shows:</p>
      <pre>
      import mx.styles.StyleManager;
      private function getNewColorName():void {
          StyleManager.registerColorName("soylentGreen",0x44FF66);
          trace(StyleManager.getColorName("soylentGreen").toString(16));
      }
      </pre>
           <span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">colorName</span>:Object</code> &mdash; The color name.
           </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>uint</code> &mdash; Returns a uint that represents the color value or <code>NOT_A_COLOR</code>
      if the value of the <code>colorName</code> property is not an alias for a color.
     </td>
</tr>
</table>
</div>
<a name="getColorNames()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getColorNames</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function getColorNames(colors:Array):void</code><p>
      Converts each element of the colors Array from a color name
      to a numeric RGB color value.
      Each color String can be either a case-insensitive color name
      such as <code>"red"</code>, <code>"Blue"</code>, or
      <code>"haloGreen"</code>, a hexadecimal value such as 0xFF0000, or a #-hexadecimal String
      such as <code>"#FF0000"</code>..
           </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">colors</span>:Array</code> &mdash; An Array of color names.
     </td>
</tr>
</table>
</div>
<a name="getStyleDeclaration()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getStyleDeclaration</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function getStyleDeclaration(selector:String):<a href="../styles/CSSStyleDeclaration.html">CSSStyleDeclaration</a></code><p>
      Gets the CSSStyleDeclaration object that stores the rules
      for the specified CSS selector.
           </p><p>If the <code>selector</code> parameter starts with a period (.),
      the returned CSSStyleDeclaration is a class selector and applies only to those instances
      whose <code>styleName</code> property specifies that selector
      (not including the period).
      For example, the class selector <code>".bigMargins"</code>
      applies to any UIComponent whose <code>styleName</code>
      is <code>"bigMargins"</code>.</p>
           <p>If the <code>selector</code> parameter does not start with a period,
      the returned CSSStyleDeclaration is a type selector and applies to all instances
      of that type.
      For example, the type selector <code>"Button"</code>
      applies to all instances of Button and its subclasses.</p>
           <p>The <code>global</code> selector is similar to a type selector
      and does not start with a period.</p>
           <span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">selector</span>:String</code> &mdash; The name of the CSS selector.
           </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code><a href="../styles/CSSStyleDeclaration.html">CSSStyleDeclaration</a></code> &mdash; 
                        The style declaration whose name matches the <code>selector</code> property.
     
                        
                     </td>
</tr>
</table>
</div>
<a name="isColorName()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">isColorName</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function isColorName(colorName:String):Boolean</code><p>
      Tests to see if the given String is an alias for a color value. For example,
      by default, the String "blue" is an alias for 0x0000FF.
           </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">colorName</span>:String</code> &mdash; The color name to test. This parameter is not case-sensitive.
           </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Boolean</code> &mdash; Returns <code>true</code> if <code>colorName</code> is an alias
      for a color.
     </td>
</tr>
</table>
</div>
<a name="isInheritingStyle()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">isInheritingStyle</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function isInheritingStyle(styleName:String):Boolean</code><p>
      Tests to see if a style is inheriting.
           </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">styleName</span>:String</code> &mdash; The name of the style that you test to see if it is inheriting.
           </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Boolean</code> &mdash; Returns <code>true</code> if the specified style is inheriting.
     </td>
</tr>
</table>
</div>
<a name="isInheritingTextFormatStyle()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">isInheritingTextFormatStyle</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function isInheritingTextFormatStyle(styleName:String):Boolean</code><p>
      Test to see if a TextFormat style is inheriting.
           </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">styleName</span>:String</code> &mdash; The name of the style that you test to see if it is inheriting.
           </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Boolean</code> &mdash; Returns <code>true</code> if the specified TextFormat style
      is inheriting.
     </td>
</tr>
</table>
</div>
<a name="isParentDisplayListInvalidatingStyle()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">isParentDisplayListInvalidatingStyle</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function isParentDisplayListInvalidatingStyle(styleName:String):Boolean</code><p>
      Tests to see if this style affects the component's parent container in
      such a way as to require that the parent container redraws itself when this style changes.
           </p><p>When one of these styles is set with <code>setStyle()</code>,
      the <code>invalidateDisplayList()</code> method is auomatically called on the component's
      parent container to make it redraw and/or relayout its children.</p>
           <span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">styleName</span>:String</code> &mdash; The name of the style to test.
           </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Boolean</code> &mdash; Returns <code>true</code> if the specified style is one
      which may affect the appearance or layout of the component's
      parent container.
     </td>
</tr>
</table>
</div>
<a name="isParentSizeInvalidatingStyle()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">isParentSizeInvalidatingStyle</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function isParentSizeInvalidatingStyle(styleName:String):Boolean</code><p>
      Tests to see if the style changes the size of the component's parent container.
           </p><p>When one of these styles is set with <code>setStyle()</code>,
      the <code>invalidateSize()</code> method is automatically called on the component's
      parent container to make its measured size get recalculated
      later.</p>
           <span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">styleName</span>:String</code> &mdash; The name of the style to test.
           </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Boolean</code> &mdash; Returns <code>true</code> if the specified style is one
      which may affect the measured size of the component's
      parent container.
     </td>
</tr>
</table>
</div>
<a name="isSizeInvalidatingStyle()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">isSizeInvalidatingStyle</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function isSizeInvalidatingStyle(styleName:String):Boolean</code><p>
      Tests to see if a style changes the size of a component.
           </p><p>When one of these styles is set with the <code>setStyle()</code> method,
      the <code>invalidateSize()</code> method is automatically called on the component
      to make its measured size get recalculated later.</p>
           <span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">styleName</span>:String</code> &mdash; The name of the style to test.
           </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Boolean</code> &mdash; Returns <code>true</code> if the specified style is one
      which may affect the measured size of the component.
     </td>
</tr>
</table>
</div>
<a name="isValidStyleValue()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">isValidStyleValue</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function isValidStyleValue(value:*):Boolean</code><p>
      Determines if a specified parameter is a valid style property. For example:
           <pre>
      trace(StyleManager.isValidStyleValue(myButton.getStyle("color")).toString());
      </pre>
           </p><p>This can be useful because some styles can be set to values
      such as 0, <code>NaN</code>,
      the empty String (<code>""</code>), or <code>null</code>, which can
      cause an <code>if (value)</code> test to fail.</p>
           <span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">value</span>:*</code> &mdash; The style property to test.
           </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Boolean</code> &mdash; If you pass the value returned by a <code>getStyle()</code> method call
      to this method, it returns <code>true</code> if the style
      was set and <code>false</code> if it was not set.
          </td>
</tr>
</table>
</div>
<a name="loadStyleDeclarations()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">loadStyleDeclarations</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function loadStyleDeclarations(url:String, update:Boolean = true, trustContent:Boolean = false, applicationDomain:ApplicationDomain = null, securityDomain:SecurityDomain = null):IEventDispatcher</code><p>
      Loads a style SWF.
           </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">url</span>:String</code> &mdash; Location of the style SWF.
           </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">update</span>:Boolean</code> (default = <code>true</code>)<code></code> &mdash; Set to <code>true</code> to force
      an immediate update of the styles.
      Set to <code>false</code> to avoid an immediate update
      of the styles in the application.
      This parameter is optional and defaults to <code>true</code>
      For more information about this parameter, see the description
      in the <code>setStyleDeclaration()</code> method.
           </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">trustContent</span>:Boolean</code> (default = <code>false</code>)<code></code> &mdash; Obsolete, no longer used.
      This parameter is optional and defaults to <code>false</code>.
           </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">applicationDomain</span>:ApplicationDomain</code> (default = <code>null</code>)<code></code> &mdash; The ApplicationDomain passed to the
      <code>load()</code> method of the IModuleInfo that loads the style SWF.
      This parameter is optional and defaults to <code>null</code>.
           </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">securityDomain</span>:SecurityDomain</code> (default = <code>null</code>)<code></code> &mdash; The SecurityDomain passed to the
      <code>load()</code> method of the IModuleInfo that loads the style SWF.
      This parameter is optional and defaults to <code>null</code>.
     
      </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>IEventDispatcher</code> &mdash; An IEventDispatcher implementation that supports
              StyleEvent.PROGRESS, StyleEvent.COMPLETE, and
              StyleEvent.ERROR.
           </td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../styles/StyleManager.html#setStyleDeclaration()" target="">setStyleDeclaration()</a>
</div>
</div>
<a name="registerColorName()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">registerColorName</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function registerColorName(colorName:String, colorValue:uint):void</code><p>
      Adds a color name to the list of aliases for colors.
           </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">colorName</span>:String</code> &mdash; The name of the color to add to the list; for example, "blue".
      If you later access this color name, the value is not case-sensitive.
           </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">colorValue</span>:uint</code> &mdash; Color value, for example, 0x0000FF.
     </td>
</tr>
</table>
</div>
<a name="registerInheritingStyle()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">registerInheritingStyle</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function registerInheritingStyle(styleName:String):void</code><p>
      Adds to the list of styles that can inherit values
      from their parents.
           </p><p><b>Note:</b> Ensure that you avoid using duplicate style names, as name
      collisions can result in decreased performance if a style that is
      already used becomes inheriting.</p>
           <span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">styleName</span>:String</code> &mdash; The name of the style that is added to the list of styles that can inherit values.
     </td>
</tr>
</table>
</div>
<a name="registerParentDisplayListInvalidatingStyle()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">registerParentDisplayListInvalidatingStyle</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function registerParentDisplayListInvalidatingStyle(styleName:String):void</code><p>
      Adds to the list of styles which may affect the appearance
      or layout of the component's parent container.
      When one of these styles is set with <code>setStyle()</code>,
      the <code>invalidateDisplayList()</code> method is auomatically called on the component's
      parent container to make it redraw and/or relayout its children.
           </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">styleName</span>:String</code> &mdash; The name of the style to register.
     </td>
</tr>
</table>
</div>
<a name="registerParentSizeInvalidatingStyle()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">registerParentSizeInvalidatingStyle</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function registerParentSizeInvalidatingStyle(styleName:String):void</code><p>
      Adds to the list of styles which may affect the measured size
      of the component's parent container.
      </p><p>When one of these styles is set with <code>setStyle()</code>,
      the <code>invalidateSize()</code> method is automatically called on the component's
      parent container to make its measured size get recalculated
      later.</p>
           <span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">styleName</span>:String</code> &mdash; The name of the style to register.
     </td>
</tr>
</table>
</div>
<a name="registerSizeInvalidatingStyle()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">registerSizeInvalidatingStyle</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function registerSizeInvalidatingStyle(styleName:String):void</code><p>
      Adds to the list of styles which may affect the measured size
      of the component.
      When one of these styles is set with <code>setStyle()</code>,
      the <code>invalidateSize()</code> method is automatically called on the component
      to make its measured size get recalculated later.
           </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">styleName</span>:String</code> &mdash; The name of the style that you add to the list.
     </td>
</tr>
</table>
</div>
<a name="setStyleDeclaration()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">setStyleDeclaration</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function setStyleDeclaration(selector:String, styleDeclaration:<a href="CSSStyleDeclaration.html">CSSStyleDeclaration</a>, update:Boolean):void</code><p>
      Sets the CSSStyleDeclaration object that stores the rules
      for the specified CSS selector.
           </p><p>If the <code>selector</code> parameter starts with a period (.),
      the specified selector is a "class selector" and applies only to those instances
      whose <code>styleName</code> property specifies that selector
      (not including the period).
      For example, the class selector <code>".bigMargins"</code>
      applies to any UIComponent whose <code>styleName</code>
      is <code>"bigMargins"</code>.</p>
           <p>If the <code>selector</code> parameter does not start with a period,
      the specified selector is a "type selector" and applies to all instances
      of that type.
      For example, the type selector <code>"Button"</code>
      applies to all instances of Button and its subclasses.</p>
           <p>The <code>global</code> selector is similar to a type selector
      and does not start with a period.</p>
           <span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">selector</span>:String</code> &mdash; The name of the CSS selector.
      </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">styleDeclaration</span>:<a href="CSSStyleDeclaration.html">CSSStyleDeclaration</a></code> &mdash; The new style declaration.
      </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">update</span>:Boolean</code> &mdash; Set to <code>true</code> to force an immediate update of the styles; internally, Flex
      calls the <code>styleChanged()</code> method of UIComponent.
      Set to <code>false</code> to avoid an immediate update of the styles in the application.
     
      <p>The styles will be updated the next time one of the following methods is called with
      the <code>update</code> property set to <code>true</code>:
      <ul>
       <li><code>clearStyleDeclaration()</code></li>
       <li><code>loadStyleDeclarations()</code></li>
       <li><code>setStyleDeclaration()</code></li>
       <li><code>unloadStyleDeclarations()</code></li>
      </ul>
      </p>
     
      <p>Typically, if you call the one of these methods multiple times, 
      you set this property to <code>true</code> only on the last call,
      so that Flex does not call the <code>styleChanged()</code> method multiple times.</p>
     
      <p>If you call the <code>getStyle()</code> method, Flex returns the style value 
      that was last applied to the UIComponent through a call to the <code>styleChanged()</code> method. 
      The component's appearance might not reflect the value returned by the <code>getStyle()</code> method. This occurs
      because one of these style declaration methods might not yet have been called with the 
      <code>update</code> property set to <code>true</code>.</p>
      
     </td>
</tr>
</table>
</div>
<a name="unloadStyleDeclarations()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">unloadStyleDeclarations</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function unloadStyleDeclarations(url:String, update:Boolean = true):void</code><p>
      Unloads a style SWF.
           </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">url</span>:String</code> &mdash; Location of the style SWF.
      </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">update</span>:Boolean</code> (default = <code>true</code>)<code></code> &mdash; Set to <code>true</code> to force an immediate update of the styles.
      Set to <code>false</code> to avoid an immediate update of the styles in the application.
      For more information about this method, see the description in the <code>setStyleDeclaration()</code>
      method.
      
      </td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../styles/StyleManager.html#setStyleDeclaration()" target="">setStyleDeclaration()</a>
</div>
</div>
<a name="constantDetail"></a>
<div class="detailSectionHeader">Constant detail</div>
<a name="NOT_A_COLOR"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">NOT_A_COLOR</td><td class="detailHeaderType">constant</td>
</tr>
</table>
<div class="detailBody">
<code>public static const NOT_A_COLOR:uint = 0xFFFFFFFF</code><p>
      The <code>getColorName()</code> method returns this value if the passed-in
      String is not a legitimate color name.
     </p></div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright"> 
</center>
</div>
</body>
</html>
<!-- -->
